package com.xing.jvmsandbox.event;


public class ThrowsEvent extends InvokeEvent {

    /**
     * 抛出的异常/错误信息
     */
    public Throwable throwable;

    /**
     * 构造异常/错误抛出调用事件
     *
     * @param throwable 抛出的异常/错误信息
     */
    public ThrowsEvent(final Throwable throwable) {
        super(Type.THROWS);
        this.throwable = throwable;
    }


    ThrowsEvent(final Type type,
                final Throwable throwable) {
        super(type);
        this.throwable = throwable;


    }

}
